
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    Object admin=request.getSession().getAttribute("admin");
%>
<html>
<head>
    <title>考试网后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="Glance Design Dashboard Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template,
SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.css" rel='stylesheet' type='text/css' />

    <!-- Custom CSS -->
    <link href="css/style.css" rel='stylesheet' type='text/css' />

    <!-- font-awesome icons CSS -->
    <link href="css/font-awesome.css" rel="stylesheet">
    <!-- //font-awesome icons CSS-->

    <!-- side nav css file -->
    <link href='css/SidebarNav.min.css' media='all' rel='stylesheet' type='text/css'/>
    <!-- //side nav css file -->

    <!-- js-->
    <script src="js/jquery-1.11.1.min.js"></script>
    <script src="js/modernizr.custom.js"></script>

    <!--webfonts-->
    <link href="//fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&amp;subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet">
    <script src="js/Chart.js"></script>
    <script src="js/metisMenu.min.js"></script>
    <script src="js/custom.js"></script>
    <link href="css/custom.css" rel="stylesheet">
    <script src="js/pie-chart.js" type="text/javascript"></script>
    <script type="text/javascript">

        $(document).ready(function () {
            $('#demo-pie-1').pieChart({
                barColor: '#2dde98',
                trackColor: '#eee',
                lineCap: 'round',
                lineWidth: 8,
                onStep: function (from, to, percent) {
                    $(this.element).find('.pie-value').text(Math.round(percent) + '%');
                }
            });

            $('#demo-pie-2').pieChart({
                barColor: '#8e43e7',
                trackColor: '#eee',
                lineCap: 'butt',
                lineWidth: 8,
                onStep: function (from, to, percent) {
                    $(this.element).find('.pie-value').text(Math.round(percent) + '%');
                }
            });

            $('#demo-pie-3').pieChart({
                barColor: '#ffc168',
                trackColor: '#eee',
                lineCap: 'square',
                lineWidth: 8,
                onStep: function (from, to, percent) {
                    $(this.element).find('.pie-value').text(Math.round(percent) + '%');
                }
            });


        });

    </script>
    <!-- //pie-chart --><!-- index page sales reviews visitors pie chart -->

    <!-- requried-jsfiles-for owl -->
    <link href="css/owl.carousel.css" rel="stylesheet">
    <script src="js/owl.carousel.js"></script>
    <script>
        $(document).ready(function() {
            $("#owl-demo").owlCarousel({
                items : 3,
                lazyLoad : true,
                autoPlay : true,
                pagination : true,
                nav:true,
            });
        });
    </script>
    <!-- //requried-jsfiles-for owl -->
    <script src="../js/jquery-1.10.2.js"></script>
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
    <script src="layui/layui.js" ></script>

    <script type="text/javascript">
        layui.use('table', function(){
            var table = layui.table;
            var tableIns=table.render({
                elem: '#a1'
                ,toolbar:'#toolbarDemo'
                ,height: 670
                ,even:true
                ,defaultToolbar: ['filter', 'exports', 'print']
                ,url: '/examproject/TestlogServlet/getexampage' //数据接口
                ,page: true //开启分页
                ,limit:20
                ,cols: [[ //表头
                    {field: 'exam_id', title: 'ID',align:'center',hide:true}
                    ,{field: 'exam_name', title: '试卷名称',align:'center'}
                    ,{field: 'exam_desc', title: '试卷描述',  align:'center'}
                    ,{field: 'exam_score', title: '试卷总分',sort: true,align:'center'}
                    ,{field: 'exam_time_limit', title: '做题时间（分钟）', align:'center'}
                    ,{field: 'exam_start_date', title: '考试开始时间',align:'center'}
                    ,{field: 'exam_end_date', title: '考试结束时间', align:'center' }
                    ,{field: 'tname', title: '试卷创建者', align:'center'}
                    ,{field: 'create_time', title: '创建时间', align:'center'}
                    ,{field: 'exam_classid', title: '试卷所属班级id', align:'center'}
                    ,{field: 'exam_type', title: '试卷类型', align:'center'}
                    ,{field: 'exam_zt', title: '试卷状态(1-已发布,2-未发布)', align:'center'}
                    ,{title:'操作',align:'center',toolbar : '#bar'}
                ]]
                ,id: 'testReload'
            });


            table.on('tool(test)', function(obj) {
                dataall=obj.data;
                var data = obj.data;//获得当前行数据
                var layEvent = obj.event; //获得 lay-event 对应的值（也可以是表头的 event 参数对应的值）
                var tr = obj.tr; //获得当前行 tr 的DOM对象
                if (layEvent === 'del') {
                    //删除
                    var tb=data.exam_id;//得到id
                    layer.confirm('确认删除嘛？', function(index){
                        $.post("/examproject/TestlogServlet/delexam",{"id":tb},function(da){
                            var ii = layer.load();
                            //此处用setTimeout演示ajax的回调
                            setTimeout(function(){
                                layer.close(ii);
                            }, 500);
                            if(da=="desug"){
                                layer.msg("删除成功！");
                                //刷新
                                Flush();
                            }else{
                                layer.msg("删除失败！");
                                Flush();
                            }
                        })
                    });
                }else if(layEvent === 'edit'){
                    //点击编辑
                    if(data.exam_type=='班级试卷'){
                        //考试类型为：班级考试时
                        $("#pp").val(data.exam_name);
                        $("#cp").val(data.exam_desc);
                        $("#ys").val(data.exam_time_limit);
                        $("#tim").val(data.exam_classid);
                        layer.open({
                            type : 1,
                            title : '编辑试卷操作',
                            area : [ '600px', '365px' ],//宽高
                            shadeClose : true, //点击遮罩关闭
                            content : $('#df')
                        });
                    }else if(data.exam_type=='时段试卷'){
                        $("#pp1").val(data.exam_name);
                        $("#cp1").val(data.exam_desc);
                        $("#ys1").val(data.exam_time_limit);
                        $("#tim1").val(data.exam_start_date);
                        $("#tim2").val(data.exam_end_date);
                        layer.open({
                            type : 1,
                            title : '编辑试卷操作',
                            area : [ '700px', '365px' ],//宽高
                            shadeClose : true, //点击遮罩关闭
                            content : $('#sf')
                        });
                    }else{
                        $("#pp2").val(data.exam_name);
                        $("#cp2").val(data.exam_desc);
                        $("#ys2").val(data.exam_time_limit);
                        layer.open({
                            type : 1,
                            title : '编辑试卷操作',
                            area : [ '600px', '365px' ],//宽高
                            shadeClose : true, //点击遮罩关闭
                            content : $('#gd')
                        });
                    }
                }
            });

            /* //搜索
            $('#sear').on('click', function() {
                 layer.msg("点击");
                 var na=$("#cpk").val();
                 layer.msg(na);
                 if(na==''){
                     Flush();
                 }else{
                     table.reload('testReload',{
                         url:'/examproject/TestlogServlet/serach',
                         method:"post",
                         request:{
                             pageName:'page',
                             limitName:'pageSize'
                         },
                         where:{
                             seaname:na
                         },
                         page:{
                             curr:1
                         }
                     })
                 }
             });*/

            //搜索
            var $ = layui.$, active = {
                reload: function(){
                    var na=$("#cpk").val();
                    table.reload('testReload', {
                        url:'/examproject/TestlogServlet/findexam',
                        request:{
                            pageName:'page',
                            limitName:'pageSize'
                        },
                        page: {
                            curr: 1 //重新从第 1 页开始
                        }
                        ,where: {
                            seaname:na
                        }
                    });
                }
            };

            $('body').on('click','.layui-form-item #sear',function(){
                var type = $(this).data('type');
                active[type] ? active[type].call(this) : '';
            });

        });

        //刷新
        function Flush(){
            layui.use('table', function(){
                var table = layui.table;
                var tableIns=table.render({
                    elem: '#a1'
                    ,toolbar:'#toolbarDemo'
                    ,height: 670
                    ,even:true
                    ,defaultToolbar: ['filter', 'exports', 'print']
                    ,url: '/examproject/TestlogServlet/getexampage' //数据接口
                    ,page: true //开启分页
                    ,limit:20
                    ,cols: [[ //表头
                        {field: 'exam_id', title: 'ID',align:'center',hide:true}
                        ,{field: 'exam_name', title: '试卷名称',align:'center'}
                        ,{field: 'exam_desc', title: '试卷描述',  align:'center'}
                        ,{field: 'exam_score', title: '试卷总分',sort: true,align:'center'}
                        ,{field: 'exam_time_limit', title: '做题时间（分钟）', align:'center'}
                        ,{field: 'exam_start_date', title: '考试开始时间',align:'center'}
                        ,{field: 'exam_end_date', title: '考试结束时间', align:'center' }
                        ,{field: 'tname', title: '试卷创建者', align:'center'}
                        ,{field: 'create_time', title: '创建时间', align:'center'}
                        ,{field: 'exam_classid', title: '试卷所属班级id', align:'center'}
                        ,{field: 'exam_type', title: '试卷类型', align:'center'}
                        ,{field: 'exam_zt', title: '试卷状态(1-已发布,2-未发布)', align:'center'}
                        ,{title:'操作',align:'center',toolbar : '#bar'}
                    ]]
                    ,id: 'testReload'
                    ,limit:20
                });
            });
        }

        //重置
        function res(){
            $("#cpk").val("");
        }
        //编辑重置
        function updare(){
            $("#pp").val(dataall.exam_name);
            $("#cp").val(dataall.exam_desc);
            $("#ys").val(dataall.exam_time_limit);
            $("#tim").val(dataall.exam_classid);
        }

        function updare1(){
            $("#pp1").val(data.exam_name);
            $("#cp1").val(data.exam_desc);
            $("#ys1").val(data.exam_time_limit);
            $("#tim1").val(data.exam_start_date);
            $("#tim2").val(data.exam_end_date);
        }
        function updare2(){
            $("#pp2").val(data.exam_name);
            $("#cp2").val(data.exam_desc);
            $("#ys2").val(data.exam_time_limit);
        }
        layui.use('form', function(){
            var form = layui.form;
            //编辑提交
            form.on('submit(update_submit)', function(){
                //ID
                var id=dataall.exam_id;
                var name=$("#pp").val();
                var desc=$("#cp").val();
                var limit=$("#ys").val();
                var clsid=$("#tim").val();
                $.post("/examproject/man/examup",{"id":id,"name":name,"desc":desc,"lim":limit,"classid":clsid},function(exup){
                    if(exup=="upasug"){
                        var ii = layer.load();
                        //此处用setTimeout演示ajax的回调
                        setTimeout(function(){
                            layer.close(ii);
                        }, 500);
                        layer.closeAll(function(){ //关闭所有层并执行回调
                            layer.msg("编辑成功！");
                            //刷新
                            Flush();
                        });
                    }else{
                        var ii = layer.load();
                        //此处用setTimeout演示ajax的回调
                        setTimeout(function(){
                            layer.close(ii);
                        }, 500);
                        layer.closeAll(function(){ //关闭所有层并执行回调
                            layer.msg("编辑失败！");
                            //刷新
                            Flush();
                        });
                    }
                })
            });
        });
        layui.use('form', function(){
            var form = layui.form;
            //编辑提交
            form.on('submit(update_submit1)', function(){
                //ID
                var id=dataall.exam_id;
                var name=$("#pp1").val();
                var desc=$("#cp1").val();
                var limit=$("#ys1").val();
                var starttime=$("#tim1").val();
                var endtime=$("#tim2").val();
                $.post("/examproject/man/examup1",{"id":id,"name":name,"desc":desc,"lim":limit,"starttime":starttime,"endtime":endtime},function(exup){
                    if(exup=="upasug"){
                        var ii = layer.load();
                        //此处用setTimeout演示ajax的回调
                        setTimeout(function(){
                            layer.close(ii);
                        }, 500);
                        layer.closeAll(function(){ //关闭所有层并执行回调
                            layer.msg("编辑成功！");
                            //刷新
                            Flush();
                        });
                    }else{
                        var ii = layer.load();
                        //此处用setTimeout演示ajax的回调
                        setTimeout(function(){
                            layer.close(ii);
                        }, 500);
                        layer.closeAll(function(){ //关闭所有层并执行回调
                            layer.msg("编辑失败！");
                            //刷新
                            Flush();
                        });
                    }
                })
            });
        });

        layui.use('form', function(){
            var form = layui.form;
            //编辑提交
            form.on('submit(update_submit2)', function(){
                //ID
                var id=dataall.exam_id;
                var name=$("#pp2").val();
                var desc=$("#cp2").val();
                var limit=$("#ys2").val();
                $.post("/examproject/man/examup2",{"id":id,"name":name,"desc":desc,"lim":limit},function(exup){
                    if(exup=="upasug"){
                        var ii = layer.load();
                        //此处用setTimeout演示ajax的回调
                        setTimeout(function(){
                            layer.close(ii);
                        }, 500);
                        layer.closeAll(function(){ //关闭所有层并执行回调
                            layer.msg("编辑成功！");
                            //刷新
                            Flush();
                        });
                    }else{
                        var ii = layer.load();
                        //此处用setTimeout演示ajax的回调
                        setTimeout(function(){
                            layer.close(ii);
                        }, 500);
                        layer.closeAll(function(){ //关闭所有层并执行回调
                            layer.msg("编辑失败！");
                            //刷新
                            Flush();
                        });
                    }
                })
            });
        });
    </script>
    <script type="text/html" id="bar">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    </script>
    <script type="text/html" id="toolbarDemo" >
        <div style="margin: 10px 0 0px 1%;width: 1500px" id="toolbarDemo">
            <div style="display: table-cell">

                <div class="layui-input-block" style="display: table-cell">
                    <!--            <label>&emsp;接&emsp;口&emsp;</label>-->
                    搜索试卷：<div class="layui-input-inline" style="width: 260px">
                    <input type="text" id="cpk" name="cnumber" placeholder="请输入试卷名 支持模糊查询"
                           autocomplete="off" class="layui-input">
                </div>

                </div>
                <div style="display: table-cell" class="layui-form-item">
                    <button class="layui-btn layui-btn-sm layui-btn-danger" data-type="reload" id="sear" lay-filter="search"
                            style="margin-left: 15px"><i class="layui-icon" >&#xe615;</i>搜&emsp;索
                    </button>
                    <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm" onclick="res()">
                        <i class="layui-icon">&#xe631;</i>重&emsp;置
                    </button>
                </div>

            </div>
            <div style="display: table-cell">
                <div style="display: table">
                    <!--刷新-->
                    <div style="display: table-cell;">
                        <button id="refresh" onclick="Flush()" class="layui-btn layui-btn-normal layui-btn-sm" style="margin-left: 15px">
                            <i class="layui-icon">&#xe669;</i> 刷&emsp;新
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </script>
</head>
<body class="cbp-spmenu-push">
<div class="header-left">
    <!--toggle button start-->
    <button id="showLeftPush"><i class="fa fa-bars"></i></button>
    <!--toggle button end-->

    <div class="header-right">
        <!--//end-search-box-->
        <div class="profile_details">
            <ul>
                <li class="dropdown profile_details_drop">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                        <div class="profile_img">
                            <span class="prfil-img"><img src="../images/logo.png" width="50px" alt=""> </span>
                            <div class="user-name">
                                <p><%=admin%></p>
                                <span>管理员</span>
                            </div>
                            <i class="fa fa-angle-down lnr"></i>
                            <i class="fa fa-angle-up lnr"></i>
                            <div class="clearfix"></div>
                        </div>
                    </a>
                    <ul class="dropdown-menu drp-mnu">
                        <li> <a href="/examproject/man/tuichu"><i class="fa fa-cog"></i> 退出</a> </li>
                    </ul>
                </li>
            </ul>
        </div>
        <div class="clearfix"> </div>
    </div>
    <div class="clearfix"> </div>
</div>
<div class="main-content">
    <div class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-left" id="cbp-spmenu-s1">
        <!--left-fixed -navigation-->
        <aside class="sidebar-left">
            <nav class="navbar navbar-inverse">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".collapse" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <h1><a class="navbar-brand" href="index.jsp"><span class="fa fa-area-chart"></span>network<span class="dashboard_text">考试网</span></a></h1>
                </div>
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="sidebar-menu">
                        <li class="header">考试网后台管理系统</li>
                        <li class="treeview">
                            <a href="/examproject/manage/examcenter.jsp">
                                <i class="fa fa-laptop"></i>
                                <span>试卷中心</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="/examproject/manage/examcenter.jsp"><i class="fa fa-angle-right"></i>试卷操作</a></li>
                                <li><a href="/examproject/manage/scoretop.jsp"><i class="fa fa-angle-right"></i>成绩排行榜</a></li>
                                <li><a href="/examproject/manage/falsetop.jsp"><i class="fa fa-angle-right"></i>错题排行榜</a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="/examproject/manage/testlog.jsp">
                                <i class="fa fa-dashboard"></i> <span>考试记录</span>
                            </a>
                        </li>

                        <li class="treeview">
                            <a href="/examproject/manage/mmessage.jsp">
                                <i class="fa fa-dashboard"></i> <span>留言管理</span>
                            </a>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-laptop"></i>
                                <span>班级管理</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="/examproject/man/cxsybj"><i class="fa fa-angle-right"></i>各班学生考试情况</a></li>
                                <li><a href="/examproject/man/findhom"><i class="fa fa-angle-right"></i>各班学生作业未完成情况</a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="/examproject/man/stugetPage">
                                <i class="fa fa-dashboard"></i> <span>学生管理</span>
                            </a>
                        </li>
                        <li class="treeview">
                            <a href="/examproject/man/getPage">
                                <i class="fa fa-dashboard"></i> <span>老师管理</span>
                            </a>
                        </li>

                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-laptop"></i>
                                <span>题库中心</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="/examproject/manage/tt.jsp"><i class="fa fa-angle-right"></i>新增考题</a></li>
                                <li><a href="/examproject/manage/CloudReadExecl.jsp"><i class="fa fa-angle-right"></i> excel批量导入考题 </a></li>
                                <li><a href="/examproject/manage/questionscenter.jsp"><i class="fa fa-angle-right"></i> 试题中心查看 </a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-dashboard"></i> <span>视频中心</span>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="/examproject/manage/stuvideo.jsp"><i class="fa fa-angle-right"></i>教学视频</a></li>
                                <li><a href="/examproject/manage/clsvideo.jsp"><i class="fa fa-angle-right"></i> 课堂回放 </a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-laptop"></i>
                                <span>安全设置</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="/examproject/man/chazcm"><i class="fa fa-angle-right"></i>学生注册码</a></li>
                                <li><a href="/examproject/man/chazcm"><i class="fa fa-angle-right"></i>老师注册码</a></li>
                            </ul>
                        </li>

                    </ul>
                </div>
                <!-- /.navbar-collapse -->
            </nav>
        </aside>
    </div>
</div>
<div style="width:1800px;height: 600px;margin-left: 250px;margin-right:250px;margin-top:20px">
    <div style="width:80%;margin-top: 50px;margin-left: 30px;">
        <table id="a1" lay-filter="test" lay-data="{id: 'idTest'}"></table>
    </div>
</div>
    <script src="js/Chart.bundle.js"></script>
    <script src="js/utils.js"></script>

    <script>
        document.getElementById('randomizeData').addEventListener('click', function() {
            var zero = Math.random() < 0.2 ? true : false;
            barChartData.datasets.forEach(function(dataset) {
                dataset.data = dataset.data.map(function() {
                    return zero ? 0.0 : randomScalingFactor();
                });

            });
            window.myBar.update();
        });

        var colorNames = Object.keys(window.chartColors);
        document.getElementById('addDataset').addEventListener('click', function() {
            var colorName = colorNames[barChartData.datasets.length % colorNames.length];;
            var dsColor = window.chartColors[colorName];
            var newDataset = {
                label: 'Dataset ' + barChartData.datasets.length,
                backgroundColor: color(dsColor).alpha(0.5).rgbString(),
                borderColor: dsColor,
                borderWidth: 1,
                data: []
            };

            for (var index = 0; index < barChartData.labels.length; ++index) {
                newDataset.data.push(randomScalingFactor());
            }

            barChartData.datasets.push(newDataset);
            window.myBar.update();
        });

        document.getElementById('addData').addEventListener('click', function() {
            if (barChartData.datasets.length > 0) {
                var month = MONTHS[barChartData.labels.length % MONTHS.length];
                barChartData.labels.push(month);

                for (var index = 0; index < barChartData.datasets.length; ++index) {
                    //window.myBar.addData(randomScalingFactor(), index);
                    barChartData.datasets[index].data.push(randomScalingFactor());
                }

                window.myBar.update();
            }
        });

        document.getElementById('removeDataset').addEventListener('click', function() {
            barChartData.datasets.splice(0, 1);
            window.myBar.update();
        });

        document.getElementById('removeData').addEventListener('click', function() {
            barChartData.labels.splice(-1, 1); // remove the label first

            barChartData.datasets.forEach(function(dataset, datasetIndex) {
                dataset.data.pop();
            });

            window.myBar.update();
        });
    </script>
    <!-- new added graphs chart js-->

    <!-- Classie --><!-- for toggle left push menu script -->
    <script src="js/classie.js"></script>
    <script>
        var menuLeft = document.getElementById( 'cbp-spmenu-s1' ),
            showLeftPush = document.getElementById( 'showLeftPush' ),
            body = document.body;

        showLeftPush.onclick = function() {
            classie.toggle( this, 'active' );
            classie.toggle( body, 'cbp-spmenu-push-toright' );
            classie.toggle( menuLeft, 'cbp-spmenu-open' );
            disableOther( 'showLeftPush' );
        };


        function disableOther( button ) {
            if( button !== 'showLeftPush' ) {
                classie.toggle( showLeftPush, 'disabled' );
            }
        }
    </script>
    <!-- //Classie --><!-- //for toggle left push menu script -->

    <!--scrolling js-->
    <script src="js/jquery.nicescroll.js"></script>
    <script src="js/scripts.js"></script>
    <!--//scrolling js-->

    <!-- side nav js -->
    <script src='js/SidebarNav.min.js' type='text/javascript'></script>
    <script>
        $('.sidebar-menu').SidebarNav()
    </script>
    <!-- //side nav js -->
    <!-- for index page weekly sales java script -->
   <script src="js/SimpleChart.js"></script>
     <script src="js/bootstrap.js"> </script>
</body>
<div style="padding: 20px; display: none" id="df">
    <div class="layui-form-item" style="display: table-cell; width: 50%">
        <label class="layui-form-label" style="width:100px">试卷名称：</label>
        <div class="layui-input-block">
            <input type="text" name="name" id="pp" placeholder="请输入试卷名称"
                   autocomplete="off" class="layui-input" lay-verify="required">
        </div>
    </div>
    <br>
    <div class="layui-form-item" style="display: table-cell; width: 50%">
        <label class="layui-form-label" style="width:100px">试卷描述：</label>
        <div class="layui-input-block">
            <input type="text" name="name" id="cp" placeholder="请输入试卷描述"
                   autocomplete="off" class="layui-input" lay-verify="required">
        </div>
    </div>
    <br>
    <div class="layui-form-item" style="display: table-cell; width: 50%">
        <label class="layui-form-label" style="width:100px">做题时间：</label>
        <div class="layui-input-block">
            <input type="text" name="name" id="ys" placeholder="请输入做题时间"
                   autocomplete="off" class="layui-input" lay-verify="required">
        </div>
    </div>
    <br>
    <div class="layui-form-item" style="display: table-cell; width: 50%">
        <label class="layui-form-label" style="width:100px">所属班级：</label>
        <div class="layui-input-block">
            <input type="text" name="time" id="tim" placeholder="请输入所属班级"
                   autocomplete="off" class="layui-input" lay-verify="required">
        </div>
    </div>
    <br>
    <div class="layui-form-item" style="margin-left: 40%" id="bu3">
        <div class="layui-btn-group">
            <button class="layui-btn" lay-submit="" lay-filter="update_submit">提&ensp;交</button>
            <button type="reset" class="layui-btn layui-btn-primary" onclick="updare()">重&ensp;置</button>
        </div>
    </div>
</div>


<%--时段试卷--%>
<div style="padding: 20px; display: none" id="sf">
    <div class="layui-form-item" style="display: table-cell; width: 50%">
        <label class="layui-form-label" style="width:100px">试卷名称：</label>
        <div class="layui-input-block">
            <input type="text" name="name" id="pp1" placeholder="请输入试卷名称"
                   autocomplete="off" class="layui-input" lay-verify="required">
        </div>
    </div>
    <br>
    <div class="layui-form-item" style="display: table-cell; width: 50%">
        <label class="layui-form-label" style="width:100px">试卷描述：</label>
        <div class="layui-input-block">
            <input type="text" name="name" id="cp1" placeholder="请输入试卷描述"
                   autocomplete="off" class="layui-input" lay-verify="required">
        </div>
    </div>
    <br>
    <div class="layui-form-item" style="display: table-cell; width: 50%">
        <label class="layui-form-label" style="width:100px">做题时间：</label>
        <div class="layui-input-block">
            <input type="text" name="name" id="ys1" placeholder="请输入做题时间"
                   autocomplete="off" class="layui-input" lay-verify="required">
        </div>
    </div>
    <br>
    <div class="layui-form-item" style="display: table-cell; width: 50%">
        <label class="layui-form-label" style="width:100px">考试开始时间：</label>
        <div class="layui-input-block">
            <input type="date" name="time" id="tim1" placeholder="请输入考试开始时间"
                   autocomplete="off" class="layui-input" lay-verify="required">
        </div>
    </div>
    <br>
    <div class="layui-form-item" style="display: table-cell; width: 50%">
        <label class="layui-form-label" style="width:100px">考试结束时间：</label>
        <div class="layui-input-block">
            <input type="date" name="time" id="tim2" placeholder="请输入考试结束时间"
                   autocomplete="off" class="layui-input" lay-verify="required">
        </div>
    </div>
    <br>
    <div class="layui-form-item" style="margin-left: 40%" id="bu4">
        <div class="layui-btn-group">
            <button class="layui-btn" lay-submit="" lay-filter="update_submit1">提&ensp;交</button>
            <button type="reset" class="layui-btn layui-btn-primary" onclick="updare1()">重&ensp;置</button>
        </div>
    </div>
</div>


<%--固定试卷--%>
<div style="padding: 20px; display: none" id="gd">
    <div class="layui-form-item" style="display: table-cell; width: 50%">
        <label class="layui-form-label" style="width:100px">试卷名称：</label>
        <div class="layui-input-block">
            <input type="text" name="name" id="pp2" placeholder="请输入试卷名称"
                   autocomplete="off" class="layui-input" lay-verify="required">
        </div>
    </div>
    <br>
    <div class="layui-form-item" style="display: table-cell; width: 50%">
        <label class="layui-form-label" style="width:100px">试卷描述：</label>
        <div class="layui-input-block">
            <input type="text" name="name" id="cp2" placeholder="请输入试卷描述"
                   autocomplete="off" class="layui-input" lay-verify="required">
        </div>
    </div>
    <br>
    <div class="layui-form-item" style="display: table-cell; width: 50%">
        <label class="layui-form-label" style="width:100px">做题时间：</label>
        <div class="layui-input-block">
            <input type="text" name="name" id="ys2" placeholder="请输入做题时间"
                   autocomplete="off" class="layui-input" lay-verify="required">
        </div>
    </div>
    <div class="layui-form-item" style="margin-left: 40%" id="bu5">
        <div class="layui-btn-group">
            <button class="layui-btn" lay-submit="" lay-filter="update_submit2">提&ensp;交</button>
            <button type="reset" class="layui-btn layui-btn-primary" onclick="updare2()">重&ensp;置</button>
        </div>
    </div>
</div>
</html>
